package exercise;

/**
 * 单例模式：饿汉式
 *
 * @author luoyalan
 * @date 2018/11/25
 */
public class SingleStudent {
    private static final SingleStudent s = new SingleStudent();

    private SingleStudent(){}

    public static SingleStudent getInstance() {
        return s;
    }
}
